import request from '@/utils/request.js'

const suggestListAPI = ({ q }) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q: q
    }
  })
}
// 搜索 - 结果列表
const searchListAPI = ({ q, page = 1 }) => {
  return request({
    url: '/v1_0/search',
    params: {
      q: q,
      page: page
    }
    // params的参数会出现在url?后面
    // data里的参数会在请求体里
  })
}
export {
  suggestListAPI, searchListAPI
}
